Post

Replies

Boosts

Views

Activity

Reply to iOS16 SwiftUI cannot figure out crash reason
I encountered a similar error when using List(_:selection:rowContent:) and selecting a row after updating the data source. I used "onTapGesture" for selection to overcome this problem. List(dataSource) { item in HStack { Text(item.name) Spacer() } .contentShape(Rectangle()) .onTapGesture { selection = item } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23